import Vue from 'vue'
import Router from 'vue-router'

import Home from '@/views/Home'
import Login from '@/views/Login'
import Cart from '@/views/Cart'
import OrderOver from '@/views/OrderOver'
import PersonalInfo from '@/views/PersonalInfo'
import SearchList from '@/views/SearchList'
import ShopDetails from '@/views/ShopDetails'
import Phone from '../views/Phone.vue'
import Registration from '../views/Registration.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {  
      path: '/',  
      name: 'Home',  
      component: Home  
    },
    {
      path: '/login',
      name : 'login',
      component: Login
    },
    {
      path: '/cart',
      name : 'Cart',
      component: Cart
    },
    {
      path: '/orderOver',
      name : 'OrderOver',
      component: OrderOver
    },
    {
      path: '/personalInfo',
      name : 'PersonalInfo',
      component: PersonalInfo
    },
    {
      path: '/searchList',
      name : 'SearchList',
      component: SearchList
    },
    {
      path: '/shopDetails',
      name : 'ShopDetails',
      component: ShopDetails
    },
    {
      path: '/phone',
      name : 'Phone',
      component: Phone
    },
    {
      path: '/registration',
      name : 'Registration',
      component: Registration
    }
  ]
})
